<!DOCTYPE html>
<html>
<head>
    <title>小梦博客-<%= title %></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="个人博客 小梦博客 技术博客 nodejs Nodejs PHP Linux mysql mongoDB">
    <meta name="keywords" content="个人博客 小梦博客 技术博客 nodejs Nodejs PHP Linux mysql mongoDB">
    <!-- 引入 Bootstrap -->
    <!--<link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">-->
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/main.css" rel="stylesheet">

    <!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
    <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) -->
    <!--<script src="https://code.jquery.com/jquery.js"></script>-->
    <script src="/js/jquery.min.js"></script>
</head>
<body>
<div class="nav-main">
    <nav class="navbar navbar-default" role="navigation" style="margin-bottom:0px;">
        <div class="container">
            <div class="col-md-8">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse"
                            data-target="#example-navbar-collapse">
                        <span class="sr-only">小梦博客</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">小梦博客</a>
                </div>
                <div class="collapse navbar-collapse" id="example-navbar-collapse">
                    <ul class="nav navbar-nav">
                        <li><a href="/">首页</a></li>
                        <li><a href="/articles/add">发表文章</a></li>
                        <li><a href="/category/add">添加分类</a></li>
                        <li><a href="/chat/index">聊天室</a></li>
                        <% if(session_user == ''){ %>
                        <li><a href="/users/reg">注册</a></li>
                        <li><a href="/users/login">登陆</a></li>
                        <% }else{ %>
                        <li><a href="/users/info">个人中心</a></li>
                        <li><a href="/users/logout">退出</a></li>
                        <% } %>
                    </ul>
                </div>
            </div>
            <form action="/articles/search/1" method="get" class="col-md-4" style="padding:7px 15px 8px 15px;">
                <div class="input-group ">
                    <input type="text" class="form-control" name="keyword">
                    <span class="input-group-btn">
						<input class="btn btn-default" type="submit" name="searchBtn" value="搜!"></input>
					</span>
                </div><!-- /input-group -->
            </form>
        </div>
    </nav>
</div>
<div class="jumbotron">
    <div class="container">
        <h3 class="text-center"><a href="#">励言</a></h3>
        <p><span class="label label-success">天再又怎样，踮起脚尖就更接近太阳!</span></p>
        <p>
            <span class="label label-warning pull-right">闻道有先后，术业有专攻，如是而已！</span>
        </p>
    </div>
</div>
<!--成功与错误信息提示-->
<% if(success != ''){ %>
<div class="alert alert-success"><%= success %></div>
<% } if(error != ''){ %>
<div class="alert alert-danger"><%= error %></div>
<% } %>


